package com.ssm.service.Impl;

import com.ssm.dao.EnterDao;
import com.ssm.pojo.Enter;
import com.ssm.service.EnterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EnterServiceImpl implements EnterService {
    @Autowired
    private EnterDao enterDao;

    @Override
    public int insert(Enter enter) {
        return enterDao.insert(enter);
    }

    @Override
    public int update(Enter enter) {
        return enterDao.update(enter);
    }

    @Override
    public Enter selectById(int id) {
        return enterDao.selectById(id);
    }
}
